<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>比赛页面</title>
    <style>
        body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f4f4f9;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh; }
        .container { background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            width: 300px;
            text-align: center; }
        h1 { color: #333;
            margin-bottom: 20px;  font-size: 20px; padding-right: 200px;}
        button { background-color: #5c67f2; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; }
        button:hover { background-color: #4a54e1; }
        video { width: 100%; border-radius: 5px; }
        #resultData {
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 10px;
            margin-bottom: 20px;
            min-height: 100px; /* 设置最小高度以确保框的可见性 */
        } 
        
    </style>
</head>
<body>
    <div class="container">
        <video controls width="100%"></video>
        <h1>慢动作回放</h1>
        <video controls width="100%"></video>
        <h1>数据结果</h1>
        <div id="resultData">
            <p>总攻击次数：<span id="total-attacks">0</span></p>
            <p>动作标准度：<span id="action-accuracy">0</span></p>
        </div>
        <button style="background-color: #1e1e1e; color: brown; width: 100%;" onclick="generateReport()">生成报告</button>
    </div>
    <script>
        function generateReport() { window.location.href = 'report.html'; }
    </script>
</body>
</html>